package com.dosin.crowno.controller;


import com.dosin.crowno.CrownoApplication;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Slf4j
@Component
public class PhonesendController {

    public void phonesendAction() throws IOException {
        Stage readStage = new Stage();
        readStage.setScene(new Scene(CrownoApplication.loadFxml("/phonesend.fxml").load()));
        readStage.getIcons().add( new Image(getClass().getResource("/images/crownt.png").toString()));
        readStage.setTitle("手机推送");
        readStage.setResizable(false);

        //关闭最小化按钮
        readStage.initStyle(StageStyle.UTILITY);
        readStage.show();


    }
}
